package com.asd.system.service.Impl;

import com.asd.system.entity.UserRole;
import com.asd.system.mapper.UserRoleMapper;
import com.asd.system.service.IUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户角色表 服务实现类
 * </p>
 * @author
 * @createtime 2021-09-13 14:20
 * @description
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public UserRole findByUserId(String userId) {
        return userRoleMapper.findByUserId(userId);
    }
}
